package pack;

import org.junit.Test;
import static org.mockito.Mockito.*;

public class ControllerTest {

	@Test
	public void shouldPrintWhenC1Handler() {

		// make fixture
		Handlerable dummyHandler = mock(Handlerable.class);
		Handlerable mockHandler = mock(Handlerable.class);

		Controller controller = new Controller(mockHandler, dummyHandler,
				dummyHandler);

		// act
		controller.handle(Command.C1);

		// verify
		verify(mockHandler).doHandle(Command.C1);
		verify(mockHandler).doHandle(any(Command.class));
	}
}
